home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Libris Britannia 4
/
science library(b).zip
/
science library(b)
/
PROGRAMM
/
CC_C
/
H001C.ZIP
/
DJGPP3.ZIP
/
EMU387
/
E61.CC
< prev
next >
Wrap
C/C++ Source or Header
|
1991-04-26
|
436b
|
29 lines
#include "emu.h"
#include "rmov.h"
void emu_61()
{
if (empty())
return;
if (modrm > 0277)
{
// fmulp st(i),st
int i = modrm & 7;
if (empty(i))
return;
reg t;
r_mul(st(i), st(), t);
r_mov(t, st(i));
st().tag = TW_E;
top++;
}
else
{
// fimul m16int
reg t, t2;
r_mov((short *)get_modrm(), t);
r_mul(st(), t, t2);
r_mov(t2, st());
}
}